﻿#pragma once
#include <iostream>
using namespace std;
#include "Student.h"
#include "Teacher.h"
#include "Manager.h"
#include "Identity.h"
#include <fstream>
#include "globalFile.h"
#include "ComputerRoomFile.h"
#include "OrderFile.h"

class OrderSystem
{
public:
	OrderSystem();
	~OrderSystem();
	void showMenu();// 展示菜单
	void exitSystem();// 退出系统
	void loginIn(string fileName, int identity);// 登录
	void managerMenu(Identity*& person);// 管理员菜单
	void studentMenu(Identity*& person);// 学生菜单
	void teacherMenu(Identity*& person);// 老师菜单
private:
	ComputerRoomFile* m_ComputerRoomFile;
	OrderFile* m_OrderFile;
	//单例
//public:
//	static OrderSystem* _instance;
//	static OrderSystem* Instance() {
//		if (_instance == NULL) {
//			_instance = new OrderSystem();
//		}
//		return _instance;
//	}
};
